package com.hoshiicloud.stock.param;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 库存分页查询参数实体
 *
 * @author : yangcheng
 * @date : 2019/5/17 19:34
 * @mail : maiboyc@163.com
 **/
@ApiModel
@Data
public class WarehouseListPageParam {

    /**
     *当前页 默认为1
     */
    @ApiModelProperty(name = "pageIndex", value = "当前页码", dataType = "java.lang.Long", example = "1", hidden = true)
    @TableField(exist = false)
    private Long pageIndex = 1L;

    /**
     *每页数量 默认为10
     */
    @ApiModelProperty(name = "pageSize", value = "每页大小", dataType = "java.lang.Long", example = "10", hidden = true)
    @TableField(exist = false)
    private Long pageSize = 10L;

    // 商品名称
    @ApiModelProperty(name = "itemNoName", value = "商品名称", required = true, dataType = "java.lang.String", example = "衬衫")
    private String itemNoName;

    // SKUNO
    @ApiModelProperty(name = "skuNo", value = "SKUNO", required = true, dataType = "java.lang.String", example = "SKU0001")
    private String skuNo;

    // SKUID
    @ApiModelProperty(name = "skuId", value = "SKUID", required = false, dataType = "java.lang.Long")
    private Long skuId;

    // 商品名称
    @ApiModelProperty(name = "skuName", value = "商品名称", required = true, dataType = "java.lang.String", example = "女士衬衫")
    private String skuName;

    //仓库当前库存数,作为大于等于的条件
    @ApiModelProperty(name = "balance",value = "当前库存",required = false,example = "0")
    private BigDecimal balance;

    //供应商id
    @ApiModelProperty(name = "vendor",value = "供应商id")
    private Long vendor;

    @ApiModelProperty(name = "deleted",value = "是否删除 0未删除 1已删除")
    private Integer deleted;

}  